//
//  PhoneBookCell.m
//  Demo0036
//
//  Created by zTercel on 13-4-11.
//  Copyright (c) 2013年 zTercel. All rights reserved.
//

#import "PhoneBookCell.h"

@implementation PhoneBookCell

@synthesize nameLable;
@synthesize phoneLable;
@synthesize name;
@synthesize phone;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setName:(NSString *)n
{
    if (![n isEqualToString:name]) {
        name            = [n copy];
        nameLable.text  = name;
    }
}

- (void)setPhone:(NSString *)p
{
    if (![phone isEqualToString:p]) {
        phone           = [p copy];
        phoneLable.text = phone;
    }
}

@end
